package ord2.indexer;

/**
 * Interface that specifies a listener for a NonBlockingIndexer. When attched
 * this inteface will be called when a index operation finishes.
 * @see NonBlockingIndexer
 *
 * @author José Ivan
 * @author Edviges
 *
 */
public interface NonBlockingIndexerListener {

    /**
     * This method is called when a non-blocking index operation finishes.
     * @param indexer Indexer that performed the operation.
     * @param e If a exception was throwed when performing the indexing operation
     * or null if operations was finished with success.
     */
    void indexingCompleted(Indexer indexer, Exception e);
}
